package com.lywz.web.interceptor;

import com.lywz.core.web.struts.StrutsBase;
import com.opensymphony.xwork2.ActionInvocation;
import com.opensymphony.xwork2.interceptor.AbstractInterceptor;

public class DefualtInitInterceptor extends AbstractInterceptor {

    private static final long serialVersionUID = -1705211925465734063L;

    @Override
    public String intercept(ActionInvocation invo) throws Exception {
        // 强行转换
        StrutsBase base = (StrutsBase) invo.getAction();
        base.init();

        return invo.invoke();
    }

}
